{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="{% static 'assets/css/style.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static '/assets/css/result.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static '/assets/css/bootstrap.min.css' %}" />
</head>
<body>
{#    <form role="search" method="get" id="searchform" action="{% url 'haystack_search' %}">#}
{#      <input type="search" name="q" placeholder="搜索" required>#}
{#      <button type="submit"><span class="ion-ios-search-strong">搜索</span></button>#}
{#    </form>#}
    <div id="hd" class="ue-clear" style="    text-align: center;margin-top: 5%;">
        <img src="{% static '/assets/img/jmu.jpg' %}" width="150px" height="150px">
        <p style="font-size: 34px;letter-spacing: 29px;color:rgb(210, 38, 38)">集大新闻</p>
        <div class="inputArea" style="left: 30%;">
            <input type="text" class="searchInput" style="width: 450px;height: 37px;" id="search_value"/>
            <input type="button" class="searchButton" onclick="add_search()" value="搜索" style="background:rgb(210, 38, 38) ;color: #fafafa;" />
        </div>
    </div>
    <script>
        function add_search() {
            var a=document.getElementById("search_value").value;
            console.log(a);
            window.location.href = "/search?q="+a;
        }
    </script>
</body>
</html>